package com.clickpaas.governmentcloud.service.policymatchextservice;

import com.clickpaas.governmentcloud.common.ServerResponse;
import com.clickpaas.governmentcloud.entity.policyEntity.PolicyEntity;

public interface MatchExtMainService {

    /**
     * 多线程执行精确匹配政策
     * @param policy
     * @return
     */
    public ServerResponse<?> exactMultiThreadExecutMatchPolicy(PolicyEntity policy,String matchiScheme);

    /**
     * 正常顺序精确匹配政策
     * @param policy
     * @return
     */
    public ServerResponse<?> exactNormalOrderMatchPolicy(PolicyEntity policy,String matchiScheme);

    /**
     * 多线程执行快速匹配政策
     * @param token
     * @return
     */
    public ServerResponse<?> fastMutiThreadExecutMatchPolicy(String token);

    /**
     * 快速匹配政策
     * @param policyEntity
     * @return
     */
    public ServerResponse<?> fastMExecutMatchPolicy(PolicyEntity policyEntity);

    /**
     * 正常顺序快速匹配政策
     * @param token
     * @return
     */
    public ServerResponse<?> fastNormalOrderMatchPolicy(String token);

    /**
     * 匹配政策前的数据处理
     * @param policy
     * @return
     */
    public boolean dealOldData(PolicyEntity policy);
}
